<%@ Control Language="C#" %>
<%@ Register TagPrefix="CS" Namespace="CommunityServer.Controls" Assembly="CommunityServer.Controls" %>
<%@ Import Namespace="CommunityServer.Components" %>
	
<CS:RepeaterPlusNone id="Comments" runat="server">
<HeaderTemplate>
	<div id="comments">
		<CS:ResourceControl runat="server" ResourceName="Weblog_CommentForm_Comments" id="Resourcecontrol1" Tag="H3"/>
		<table cellpadding="0" cellspacing="0" border="0" width="100%">
</HeaderTemplate>
<ItemTemplate>
	<tr valign="top">
	<td class="<%# ((bool) DataBinder.Eval(Container.DataItem, "IsOwner")) ? "CommentOwner" : "Comment" %> CommentAvatar">
		<CS:UserAvatar runat="server" Border="1" PadImage="False" id="Avatar" />&nbsp;
	</td>
	<td class="<%# ((bool) DataBinder.Eval(Container.DataItem, "IsOwner")) ? "CommentOwner" : "Comment" %>  CommentContent" width="100%">
		<h4 class="CommentTitle"><asp:HyperLink Runat="server" ID="NameLink" /> 
		<cs:resourcecontrol runat="server" resourcename="Weblog_CommentForm_Said" id="Resourcecontrol3" /></h4>
		<div class="CommentText"><asp:Literal id = "PostText" Runat = "server" /></div>
		<div class="CommentFooter"><%#  DataBinder.Eval(Container.DataItem, "PostDate","{0:MMMM d, yyyy}") %> <%#  DataBinder.Eval(Container.DataItem, "PostDate","{0:t}") %> <asp:LinkButton Runat="server" ID="EditLink" CausesValidation="False" CssClass="floatright"/></div>
	</td>
	</tr>
</ItemTemplate>
<FooterTemplate>
	</table>
	</div>
</FooterTemplate>
<NoneTemplate>
	<tr><td colspan="2" class="Comment CommentContent">
		<cs:resourcecontrol runat="server" resourcename="Weblog_CommentForm_NoComments" id="Resourcecontrol2" />
	</td></tr>
</NoneTemplate>
</CS:RepeaterPlusNone>
